<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<HTML>
	<HEAD>
		<script type="text/javascript" src="${ctx}/HTML/jquery/jquery-js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="${ctx}/HTML/jquery/jquery-external/cookie/jquery.cookie.min.js"></script>
		<script type="text/javascript">
			var $j = jQuery.noConflict();
			$j(function() {

				alert($j.cookie("LoginName"));
				
				$j("#testBtn").click(function() {
					$j.cookie("LoginName", '456', {path:"/", expires: 10});
				});

				$j("#cancelBtn").click(function() {
					$j.cookie("LoginName", null, {path:"/"});
				});
			});
		</script>
	</HEAD>
	<body>
		<input type="button" id="testBtn" value="TEST">
		<input type="button" id="cancelBtn" value="TEST">
	</body>
</HTML>